<?php 
namespace app\index\validate;
use think\Validate;

class Pet extends Validate
{
	protected $rule = [
	'nickname' => 'require|max:10',
	'birthday' => 'require',
	'category' => 'require|max:10',
	'weight' => 'require|max:10',

	];

	protected $message = [
	'nickname.require' => '昵称不可以为空哦',
	'nickname.max' => '昵称不要超过10个字符',
	'category.require' => '种类不能为空',
	'category.max' => '种类字数不要超过10个字符',
	'weight.require' => '体重不能为空',
	'weight.max' => '体重字数不要超过10个字符',
	'birthday.require' => '内容不能为空',

	];

}